/**
 * 图片加载
 * @param {*图片地址} path 
 * @returns 
 */
export function loadImg(path) {
    return new Promise((resolve,reject) => {
        const image = new Image()
        image.src = path
        image.onload = () => resolve(path)
        image.onerror = reject
    })
}